package com.ego.coupon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ego.common.vo.PageVo;
import com.ego.coupon.po.SeckillSession;
import com.ego.coupon.vo.SeckillSearchVo;

import java.util.List;

/**
 * @program: ego
 * @description 秒杀活动场次服务层
 * @author KamTang
 * @date 2022-11-13 13:17:12
 */
public interface SeckillSessionService extends IService<SeckillSession> {

    /**
     * 搜索秒杀活动
     * @param search @see
     * @return @see
     * @see SeckillSearchVo
     * @see PageVo
     */
    PageVo<SeckillSession> search(SeckillSearchVo search);

    /**
     * 获取最近一天的活动
     * @return @see
     * @see SeckillSession
     */
    List<SeckillSession> getLastDaySession();

}

